import request from '@/utils/request'

// 查询保养方案档案列表
export function listMaintenancePlan(query) {
  return request({
    url: '/wms/maintenancePlan/list',
    method: 'get',
    params: query
  })
}

// 查询保养方案档案详细
export function getMaintenancePlan(id) {
  return request({
    url: '/wms/maintenancePlan/' + id,
    method: 'get'
  })
}

// 新增保养方案档案
export function addMaintenancePlan(data) {
  return request({
    url: '/wms/maintenancePlan',
    method: 'post',
    data: data
  })
}

// 修改保养方案档案
export function updateMaintenancePlan(data) {
  return request({
    url: '/wms/maintenancePlan',
    method: 'put',
    data: data
  })
}

// 删除保养方案档案
export function delMaintenancePlan(id) {
  return request({
    url: '/wms/maintenancePlan/' + id,
    method: 'delete'
  })
}
